// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
 
import Vue from 'vue';
import App from './App';
import './components/index.js';

import VueXmobile from 'vue-xmobile';

import moduleRoutes from './module/routes';

// import { SERVER_URL } from "../static/config";

// import demoRoute from "../node_modules/vue-xmobile/examples/router";
import VueDND from 'awe-dnd';
//设置头部为白色背景黑色字体
// try{
//   var stus = window.StateColor.SetStateColorByRgb(255,255,255,"light"/"dark");
//   console.log(stus)
// }catch(e){
//   console.log(e)
// }
  
Vue.use(VueDND);
Vue.use(VueXmobile);
const router = VueXmobile.getRouter();
const store = VueXmobile.getStore();

// store.commit('setBaiduKey', 'ROninBdEIu93CBGDHc3fSPHE');
// store.commit('setGaodeKey', '17444b2bb086f16401f7965b00e9c675');
// store.commit('setMapType', 'b');
// store.commit('setFormLabelPosition', 'top');

router.addRoutes(moduleRoutes);
// router.addRoutes(demoRoute);
// const addressModel = {
//   provinceUrl: `${rt.getBaseURL()}api/SfaCommon/GetProvinceList`,
//   cityUrl: `${rt.getBaseURL()}api/SfaCommon/GetCityList`,
//   countyUrl: `${rt.getBaseURL()}api/SfaCommon/GetCountyList`
// };
// store.dispatch("setDataUrl", addressModel);
import './libs';

Vue.config.productionTip = false;
rt.initAppToken(
  () => {
    new Vue({
      router,
      store,
      render: (h) => h(App),
    }).$mount('#app-box');
  },
  () => {
    // window.location.reload();
  }
);
/* eslint-disable no-new */
